Module-level declarations
Functions
Link copied to clipboard
function decrease_tool_durability(account_id: byte_array, tool_name: text, required_tool_category: tool_category, durability_cost: integer): instance
Link copied to clipboard
Link copied to clipboard
function get_expendable_tools(account_id: byte_array): list<(name: text, durability: integer, amount: integer)>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function register_new_tool(name: text, category: tool_category, tier: integer, max_durability: integer, price: integer)
Link copied to clipboard
function update_tool(name: text, category: tool_category, tier: integer, max_durability: integer, price: integer)
Link copied to clipboard
Queries
Link copied to clipboard
@mount("tools.get_all_tools")
query get_all_tools(): list<(name: text, category: integer, max_durability: integer)>
Link copied to clipboard
@mount("tools.get_max_durability")
query get_max_durability(): list<(name: text, max_durability: integer)>
Link copied to clipboard
Operations
Link copied to clipboard
@mount("tools.upsert_tool")
operation upsert_tool(name: text, category: tool_category, tier: integer, max_durability: integer, price: integer)